package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.VcodeDao;
import edu.tongji.jiaowu.service.VcodeManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class VcodeManagerImpl extends BaseManagerImpl implements VcodeManager {
	private VcodeDao vcodeDao;

	public CommonBean createVcode() {
		return vcodeDao.createVcode();
	}

	/*
	 public CommonBean findVcodes(String refid) {
	 return vcodeDao.findVcodes(refid);
	 }
	 */
	public CommonBean findVcodeById(String id) {
		return vcodeDao.findVcodeById(id);
	}

	public CommonBean findAllVcodes() {
		return vcodeDao.findAllVcodes();
	}

	public void insertVcode(CommonBean vcodeBean) {
		vcodeDao.insertVcode(vcodeBean);
	}

	public CommonBean findCodes(String categoryCode) {
		return vcodeDao.findCodes(categoryCode);
	}

	public CommonBean findCodes(String categoryCode, String codeStr) {
		return vcodeDao.findCodes(categoryCode,codeStr);
	}

	public CommonBean findAllCodes(String categoryCode) {
		return vcodeDao.findAllCodes(categoryCode);
	}

	public void status(String categoryCode, String[] codes, String isValid) {
		vcodeDao.status(categoryCode, codes, isValid);
	}

	public VcodeDao getVcodeDao() {
		return vcodeDao;
	}

	public void setVcodeDao(VcodeDao vcodeDao) {
		this.vcodeDao = vcodeDao;
	}

}
